package PerDNSServer2;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: 0162977
 * @Date: 2020/12/3 16:07
 */
public class ShareSpaceAndFun {
    public static int myPort = 4051;
    private static Map<String,String> mapping = new HashMap<String,String>();
    static {
        for (int i =0 ;i<10 ; i++){
            for (int j=0 ;j<5;j++){
                for (int k =0; k<200;k++){
                    mapping.put(String.valueOf(i*1000+j*200+k)+".org.cn","172."+String.valueOf(i)+"."+String.valueOf(j)+"."+String.valueOf(k));

                }
            }
        }
    }

    public static String findMapping(String website){
        return mapping.get(website);
    }


}
